const mongoose = require('mongoose')

const adminUserSchema = mongoose.Schema({
  email: String,
  userName: String,
  password: String,
  phone: String,
  avatar: {
    type: String, 
    default: ''
  },
  level: {
    type: Number, 
    default: 2
  },
  createAt: {
    type: Date,
    default: new Date()
  }
})

module.exports = mongoose.model('adminUser', adminUserSchema)
